﻿using System;
using System.Web.Mvc;
using Defero.ViewModels;

namespace Defero.Controllers
{
    public class SalesController : Controller
    {
 
        public ActionResult Index()
        {
            return View();
        }

        public JsonResult Get(int? id)
        {
            return Json(new SaleModel {
                                Id = 1,
                                Date = DateTime.Now,
                                Total = 1000M                                
            }, JsonRequestBehavior.AllowGet);
        }

        public PartialViewResult Side() 
        {
            return PartialView();
        }
 
    }
}
